f38b59a796d01add199017a34a9f401463ba77c2,src/main/il/org/spartan/ispartanizer/plugin/leonidas/PsiTreeMatcher.java,PsiTreeMatcher,match,#PsiElement#PsiElement#,25

Before Change


        }
        boolean res = true;
        for (PsiElement treeTemplateChild = treeTemplate.getFirstChild(),
             treeToMatchChild = treeToMatch.getFirstChild();
             treeTemplateChild != null && treeToMatchChild != null;
             treeTemplateChild = step.nextSibling(treeTemplateChild),
                     treeToMatchChild = step.nextSibling(treeToMatchChild)) {

After Change


        boolean res = true;
        PsiElement treeTemplateChild, treeToMatchChild;
        for (treeTemplateChild = treeTemplate.getFirstChild(),
                     treeToMatchChild = treeToMatch.getFirstChild();
             treeTemplateChild != null && treeToMatchChild != null;
             treeTemplateChild = step.nextSibling(treeTemplateChild),
                     treeToMatchChild = step.nextSibling(treeToMatchChild)) {
            res = res && match(treeTemplateChild, treeToMatchChild);
        }
        return treeTemplateChild != null && treeToMatchChild == null ? false : res;
    }

}